﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Share/Default.master" AutoEventWireup="true" CodeFile="CategoryList.aspx.cs" Inherits="Admin_Category_CategoryList" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
<table>
    <tr>
        <td>
            <img src="/images/Edit.gif" title="添加分类" />
            <a href="CategoryAdd.aspx?labelid=<%=labelId%>">添加分类</a>
        </td>
    </tr>
</table>
<asp:GridView ID="gv" runat="server" AutoGenerateColumns="false" SkinID="gvList">
<Columns>
    <asp:TemplateField HeaderText="编辑">
        <ItemTemplate>
            <img src="/images/Edit.gif" title="编辑" />
            <a href="CategoryEdit.aspx?labelid=<%=labelId %>&CategoryId=<%#Eval("CategoryId") %>">编辑</a>
        </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField  HeaderText="删除">
        <ItemTemplate>
            <img src="/images/Delete.gif" title="删除" />
            <a onclick="return confirm('确定删除分类:<%#Eval("CategoryName") %>')" href="?labelid=<%=labelId %>&CategoryId=<%#Eval("CategoryId") %>">删除</a>
        </ItemTemplate>
    </asp:TemplateField>
    <asp:BoundField DataField="CategoryName" HeaderText="分类名称" />
</Columns>
</asp:GridView>
</asp:Content>

